#include "button.h"
#include "config.h"
Button::Button()
{
    restartbutton.load(RESTARTBUTTON_PATH);
    restart_rect.setWidth(restartbutton.width());
    restart_rect.setHeight(restartbutton.height());
    endbutton.load(ENDBUTTON_PATH);
    end_rect.setWidth(endbutton.width());
    end_rect.setHeight(endbutton.height());
}

QPixmap Button::getRestartButton() const
{
    return restartbutton;
}

QRect Button::getRestartRect() const
{
    return restart_rect;
}

void Button::setRestartButtonPosition(int x, int y)
{
    restart_rect.moveTo(x,y);
}
